package com.wonder.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_bd_pda")
@ApiModel(value="t_bd_pda对象", description="pda绑定打印机")
public class BdPda extends Model<BdPda> {

    private static final long serialVersionUID = 1736924781245595L;

    @TableId(value ="id", type = IdType.AUTO)
    @ApiModelProperty(name = "id" , value = "编号")
    private Long id;

    @TableField(value = "uuid")
    @ApiModelProperty(name = "uuid" , value = "pdauuid")
    private String uuid;

    @TableField(value = "macAddress")
    @ApiModelProperty(name = "macAddress" , value = "打印机蓝牙地址")
    private String macAddress;

    @TableField(value = "userName")
    @ApiModelProperty(name = "userName" , value = "使用人")
    private String userName;

    @TableField(value = "departName")
    @ApiModelProperty(name = "departName" , value = "车间")
    private String departName;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
